Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsonc-eslint-parser

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonc-eslint-parser

JSON, JSONC and JSON5 parser for use with ESLint plugins

  • 1.4.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.1M
increased by4.36%
Maintainers
1
Weekly downloads
 
Created

What is jsonc-eslint-parser?

The jsonc-eslint-parser npm package is a parser that allows ESLint to lint JSONC files. JSONC (JSON with Comments) is a superset of JSON which supports comments. This parser integrates with ESLint to provide linting capabilities for JSONC files, ensuring that they are syntactically correct and adhere to specified style rules.

What are jsonc-eslint-parser's main functionalities?

Linting JSONC files

This feature allows developers to lint JSONC files using ESLint by extending the recommended configuration. It helps in identifying and reporting the patterns found in JSONC files that might lead to errors.

{ "extends": "plugin:jsonc/recommended" }

Customizable rules

Developers can customize specific linting rules for JSONC files. For example, setting the 'no-octal-escape' rule to 'error' ensures that octal escapes are flagged as errors, promoting better coding practices.

{ "rules": { "jsonc/no-octal-escape": "error" } }

Integration with ESLint

This feature highlights the integration capability of jsonc-eslint-parser with ESLint, allowing it to be set as the parser in ESLint configuration files. This enables the linting of JSONC files within a project's ESLint setup.

{ "parser": "jsonc-eslint-parser" }

Other packages similar to jsonc-eslint-parser

Keywords

FAQs

Package last updated on 22 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc